package special;

public class Real_use {
    public static void main(String[] args) {
        System.out.println(get(new double[][]{{3,79},{3,71},{2.5,62},{2.5,70},{3,74}, {1,69},{1,68},{2,63},{2,73},
                {2,67},{2,67},{3,81},{3,76},{3,85},{3,71},{2,67}, {3,66},{3,70},{2,60},{3,68}, {2,70},{2,75},{0.5,83},
                {0.5,69},{2,63},{3,68},{2,74},{2,69},{2,94},{3,68},{2,79}, {0.5,77},{1.5,84},{1.5,82},{1,80},{1,83},
                {1,80},{1.0,82},{3,85},{3,81},{0.5,82},{2,65}}));

        System.out.println(get(new double[][]{{3,80},{3,75},{2.5,65},{4,82},{1,64},{2,73},{2,65},{2,80},{2,65},{3,76},
                {4,72},{3,66},{2,70},{2,66},{2,73},{2,63},{2,66},{2,61},{2,62},{0.5,84},{3.0,79},{0.5,82},{2,65},
                {3,74},{2,67},{2,66},{2,77},{2,88},{3,72},{1.5,89},{1.0,65},{1.0,86},{3,86},{3,88},{0.5,73}}));
    }
    private static double get(double[][] tab){
        double ans = 0;
        for (double[] one : tab) {
            ans += one[0] * ((one[1] - 60) / 100);
        }
        return ans / 156;
    }
}
